package com.zrrd.common.util;

/**
 * @author WanJl
 * @version 1.0
 * @title ResponseStatusCode
 * @description 响应通用状态码
 * @create 2024/9/5
 */
public enum ResponseStatusCode {
    DEFAULT_OK(200, "响应成功"),
    DEFAULT_ERR(201,"响应失败"),
    SAVE_OK(20000, "添加成功"),
    SAVE_ERR(20001,"添加失败"),
    UPDATE_OK(20010, "修改成功"),
    UPDATE_ERR(2011,"修改失败"),
    DELETE_OK(20020, "删除成功"),
    DELETE_ERR(20021,"删除失败"),
    FIND_OK(2030, "查询成功"),
    FIND_ERR(2031,"查询失败"),


    ;
    private Integer code;
    private String message;

    ResponseStatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
